import Vue from 'vue'
import App from './App.vue'
import router from './router'
import md5 from 'md5'
import store from "./store/index"
import './assets/css/cssreset.css'
import './assets/css/base.css'
import 'amfe-flexible'
import { Button, Icon, Field, CellGroup } from 'vant'

Vue.use(Button).use(Icon).use(Field).use(CellGroup)

Vue.config.productionTip = false
Vue.prototype.$md5 = md5;

import http from './assets/js/fetch.js'
Vue.prototype.$api = http; // 将api挂载到vue的原型上

import Tool from './assets/js/tool.js'
Vue.prototype.$tool = Tool;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
